package com.machine.filling.function.init.InputOilGunInfo;

import com.machine.filling.base.baseMvp.IBasePresenter;
import com.machine.filling.base.baseMvp.IBaseView;
import com.machine.filling.net.http.response.OilGunDetailResBean;
import com.machine.filling.net.http.response.OilTankListResBean;
import com.machine.filling.net.http.response.OilTypeListResBean;

import java.util.List;

/**
 * Created by Administrator on 2018/1/14 0014.
 */

public class InputOilGunInfoContract {
    interface Presenter extends IBasePresenter{
        /**
         * 获取油品列表
         */
        void getOilTypeList();

        /**
         * 获取油罐列表
         */
        void getOilTankList();

        /**
         * 获取油枪信息
         */
        void getOilGunDetailInfo();

        /**
         * 添加油枪 修改油枪
         */
        void addOrModifyOilGunInfo();


    }
    interface View extends IBaseView<Presenter>{
        /**
         * 获取油站id
         * @return
         */
        String getStationId();

        /**
         * 获取油机id
         * @return
         */
        String getMachineId();

        /**
         * 获取油品bean
         * @return
         */
        OilTypeListResBean.ResultBean.TypesBean getTypeBean();

        /**
         * 获取油罐的bean
         * @return
         */
        OilTankListResBean.ResultBean.PotsBean getPotBean();

        /**
         * 获取油枪编号
         * @return
         */
        String getOilGunNum();

        /**
         * 获取油枪id
         * @return
         */
        String getOilGunId();

        /**
         * 获取油枪名称
         * @return
         */
        String getOilGunName();

        /**
         * 获取初始表数
         * @return
         */
        String getInitAccount();

        /**
         * 获取串口号
         * @return
         */
        String getSerialNum();



        /**
         * 显示油品列表
         * @param typesBeen
         */
        void showOilTypeListResult(List<OilTypeListResBean.ResultBean.TypesBean> typesBeanList);

        /**
         * 显示油罐列表
         */
        void showOilTankListResult(List<OilTankListResBean.ResultBean.PotsBean> tankBeanList);

        /**
         * 显示油枪详情
         * @param gunDetailBean
         */
        void showOilGunDetailInfo(OilGunDetailResBean.ResultBean gunDetailBean);

        /**
         * 显示 保存成功
         */
        void saveOilGunInfoResult();

    }
}
